package com.itheima.health.dao;

import com.itheima.health.pojo.OrderSetting;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface OrderSettingDao {

/*    long countByOrderDate(Date orderDate);

    void updateById(Date orderDate, int number);

    void insert(OrderSetting orderSetting);

    List<OrderSetting> selectByOrderDateRange(String starDate, String endDate);

    OrderSetting selectByOrderDate(Date orderDate);*/


    long countByOrderDate(Date orderDate);

    void updateById(Date orderDate, int number);

    //插入
    void insert(OrderSetting orderSetting);

    //根据月份查询对应预约数据
    List<OrderSetting> selectByOrderDateRange(@Param("startDate") String startDate, @Param("endDate") String endDate);

    //根据日期编辑
    OrderSetting selectByOrderDate (Date orderDate);
}
